#include "myslider.h"

QEvent::Type SliderClickedEvent::m_EventType = QEvent::None;

SliderClickedEvent::SliderClickedEvent(QString valueString) : QEvent(eventType())
{
    m_String = valueString;
}

SliderClickedEvent::~SliderClickedEvent()
{

}

QEvent::Type SliderClickedEvent::eventType()
{
    // 创建事件Type
    if (m_EventType == QEvent::None)
        m_EventType = (QEvent::Type)QEvent::registerEventType();

    return m_EventType;
}

QString SliderClickedEvent::getValueString(void)
{
    return m_String;
}
